package com.simple.study.feign;

import com.simple.study.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserFeign
 * @Author SimpleTree
 **/
@FeignClient(name = "shop")
public interface UserFeign {
    @GetMapping("/users/load/{username}")
    public User findUserInfo(@PathVariable String username);
}
